 /*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

 /**
 * Project  : AvatarHelper
 * Package  : net.solosky.avatarhelper.api
 * File     : Avatar.java
 * Author   : solosky < solosky772@qq.com >
 * Created  : 2011-10-23
 * License  : Apache License 2.0 
 */
package net.solosky.easyavatar.api;

/**
 *
 * 头像
 *
 * @author solosky <solosky772@qq.com>
 *
 */
public class Avatar {
	/**头像所属朋友ID*/
	private String fid;
	/**头像地址*/
	private String url;
	/**头像的本地缓存路径*/
	private String cache;
	/**头像的完整数据*/
	private byte[] data;
	/**TAG，主要在Android做界面时保存bitmap*/
	private Object tag;
	
	/**图像大小枚举*/
	public enum Scale{SMAILL,LARGE}
	

	public Avatar() {
		super();
	}

	public String getFid() {
		return fid;
	}

	public void setFid(String fid) {
		this.fid = fid;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCache() {
		return cache;
	}

	public void setCache(String cache) {
		this.cache = cache;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public Object getTag() {
		return tag;
	}

	public void setTag(Object tag) {
		this.tag = tag;
	}
	
	
}
